package com.guomao.interfaces;

public class TestB {


    public static void main(String[] args) {

        /*new Thread(new Runnable() {
            @Override
            public void run() {

            }
        }).start();*/


        Runnable r = () -> {
            for (int i = 0; i < 100; i++) {
                System.out.println(i);
            }
        };
//        new Thread(r).start();
/*        new Thread(() -> {
            for (int i = 0; i < 100; i++) {
                System.out.println(i);
            }
        }).start();*/


//        new Thread(() -> System.out.println("启动新线程!")).start();


    }
}
